package 慕课网.homework1;

public class testwork extends parent{
    private int number;
    private int bug;
    public testwork(){

    }
    public testwork(String workName,String way,int number,int bug){
        super(workName,way);
        this.setBug(bug);
        this.setNumber(number);
    }
    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getBug() {
        return bug;
    }

    public void setBug(int bug) {
        this.bug = bug;
    }
    public String describe(){
        String str=this.getWorkName()+"类信息测试:"+this.getWorkName()+"的日报是：今天编写了"+this.getNumber()+"个测试用例，"+"发现了"+this.getBug()+"个代码";
        return str;
    }
}
